public class Solution {
    public long[] sumOfThree(long num) {
        long[] SumOfThree = new long[3];
        if(num % 3 == 0){
            for(int i = 0;i < 3;i ++){
                SumOfThree[i] = num / 3 + i - 1;
            }
            return SumOfThree;
        }else{
            return new long[0];
        }
    }
}